package com.hqyj.controller;



import com.hqyj.pojo.DepotJacket;
import com.hqyj.service.DepotJacketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("depotJacket")
public class DepotJacketController {
    @Autowired
    DepotJacketService depotJacketService;

    @RequestMapping("/depotJacketList")
    public HashMap<String,Object>  listPage(DepotJacket d){
        return depotJacketService.select(d);
    }
    //修改
    @RequestMapping("/update")
    public HashMap<String,Object>  update(DepotJacket d){
        return  depotJacketService.update(d);
    }
    @RequestMapping("/add")
    public HashMap<String,Object> add(DepotJacket d){
        return depotJacketService.add(d);
    }
    @RequestMapping("/del")
    public HashMap<String,Object> del(Integer id){
        return  depotJacketService.del(id);
    }


}
